package com.animations;

import com.beans.PersonBean;
import java.util.Comparator;

class SortByScores implements Comparator<PersonBean> {

  public int compare(PersonBean p1, PersonBean p2) {
    if (p1.scores < p2.scores) return 1;
    if (p1.scores == p2.scores) {
      return 0;
    }
    return -1;
  }
}
